package com.atguigu.servicebase.handler;

import com.atguigu.commonutils.R;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 创建自定义异常类
 */
@Data
@AllArgsConstructor//有参构造函数
@NoArgsConstructor//无参构造函数
public class GuliException extends RuntimeException {
    //对象属性                        @ApiModelProperty       用在参数对象的字段上
    @ApiModelProperty(value = "状态码")
    private Integer code;

    private String msg;


}
